package com.atguigu.day11.method03.m4;

public class Test5 {
    public static void main(String[] args) {
        //向上转型
        MyClass my = new MySub();

        Father f = new Father();
        Son s = new Son();
        Daughter d = new Daughter();

        my.method(f);

        my.method(s);
        my.method(d);
    }
}